<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
<style type="text/css">
	#py_list dd{ float:left; display:inline;}
	.cat_list {
    /*float: left;
    padding: 5px;
    width: 350px;*/
}
.cat_list h3 {
    border-bottom: 1px dashed #87CCF1;
    font-size: 14px;
    height: 24px;
    line-height: 24px;
}
.cat_list p {
    color: #CCCCCC;
    line-height: 24px;
    margin-top: 5px;
}
</style>
</head>
<body>

{template 'header.html'}

{template 'header.html','yellowpage'}

<div class="container">
    <div class="aside">
        
        <div class="mod">
        	<div class="well">
            	<a href="{url("?module=yellowpage&action=apply")}" class="button button-block">申请企业黄页</a>
        		<a class="button button-block" href="{url("?module=yellowpage&file=company&action=member")}">免费升级为企业会员</a>
            </div>
        </div>
  
        
        <div class="mod">
        	<div class="head">最新加盟</div>
            <div class="body">
            	<ol>
                  {get sql="SELECT userid,companyname,sitedomain FROM `table_member_company` WHERE status = 1 ORDER BY userid DESC" rows="7"}
                    {if $r[companyname]}<li><a href="{url("?module=$module&userid=$r[userid]")}" title="{$r[companyname]}">{str_cut($r[companyname],26,'..')}</a></li>{/if}
                  {/get}
                </ol>
            </div>
        </div>
        
        
        <div class="mod">
        	<div class="head">推荐企业</div>
            <div class="body">
            	<ol>
                    
                    {get sql="SELECT userid,companyname,sitedomain FROM `table_member_company` WHERE status = 1 AND elite = 1 ORDER BY userid DESC" rows="7"}
                    {if $r[companyname]}<li><a href="{url("?module=$module&userid=$r[userid]")}" title="{$r[companyname]}">{str_cut($r[companyname],26,'..')}</a></li>{/if}
                    {/get}
                </ol>
            </div>
        </div>
        
        
        
        
        
        <div class="mod">
        	<div class="head">最新资讯</div>
            <div class="body">
            	<ol>
                {get sql="SELECT id,title,url FROM `table_yellowpage_news` WHERE status = 99 ORDER BY id DESC" rows="10"}
                    <li><a href="{url($r[url])}" title="{$r[title]}">{str_cut($r[title],30,'')}</a></li>
                {/get}
              </ol>
            </div>
        </div>
        
        
      
      <div class="mod">
      	<div class="head">最新产品</div>
         <div class="body">
         	<ol>
            {get sql="SELECT p.id,p.title,p.thumb,p.url,c.companyname,p.userid FROM `table_yellowpage_product` `p`,`table_member_company` `c` WHERE c.userid = p.userid AND p.status = 99 ORDER BY id DESC" rows="10"}
                <li>
                    <img src="{thumb($r['thumb'],48,48,1,'images/no_pic_50_50.gif')}" alt="" width="48" height="48"/>
                    <a href="{url($r[url])}" title="{$r['title']}"><strong>{str_cut($r['title'],20,'')}</strong></a>
                    <span><a href="{$r['userid']}" title="{$r['companyname']}">{str_cut($r['companyname'],20,'')}</a></span>
                </li>
            {/get}
          </ol>
         </div>
      </div>
      
      
      <div class="mod">
      	<div class="head">推荐产品</div>
         <div class="body">
         	<ol>
            {get sql="SELECT p.id,p.title,p.thumb,p.url,c.companyname,p.userid FROM `table_yellowpage_product` `p`,`table_member_company` `c` WHERE c.userid = p.userid AND p.status = 99 AND p.elite = 1 ORDER BY id DESC" rows="10"}
                <li><img src="{php //thumb($r['thumb'],48,48,'images/no_pic_50_50.gif')}" alt="" width="48" height="48"/>
                <a href="{url($r[url])}">{str_cut($r['title'],20)}</a> 
                <a href="{$r['userid']}">{str_cut($r['companyname'],20,'')}</a>
                </li>
            {/get}
          </ol>
         </div>
      </div>	
      
    </div>
    
    
    
    
    <div class="main">
    
    
  
        
            <div class="tabbable">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#c1" data-toggle="tab">产品分类</a></li>
                    <li><a href="#c2" data-toggle="tab">行业分类</a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="c1">
          
                          
                          {loop $C $cid $cat}
                          <div class="cat_list">
                            <h4><a href="{url("?module=$module&action=product&catid=$cat[catid]")}">{$cat['catname']}</a></h4>
                            <p>
                            {php $data = subcat($cid,'yellowpage');}
                            {loop $data $n $r}
                                {if $r[ismenu]}<a href="{url("?module=$module&action=product&catid=$r[catid]")}"><span class="{$r[style]}">{$r[catname]}</span></a> | {/if}
                            {/loop} <a href="{url("?module=$module&action=product&catid=$cat[catid]")}">更多</a>
                            </p>
                          </div>
                          {/loop}
              
                    </div>
                    <div class="tab-pane" id="c2">
                    
                      {loop $C $cid $cat}
                      <div class="cat_list">
                        <h4><a href="{url("?module=$module&action=company&catid=$cat[catid]")}">{$cat['catname']}</a></h4>
                        <p>
                        {php $data = subcat($cid,'yellowpage');}
                        {loop $data $n $r}
                            {if $r[ismenu]}<a href="{url("?module=$module&action=company&catid=$r[catid]")}"><span class="{$r[style]}">{$r[catname]}</span></a> | {/if}
                        {/loop} <a href="{url("?module=$module&action=company&catid=$cat[catid]")}">更多</a>
                        </p>
                      </div>
                      {/loop}
                      
              
                    </div>
                </div>
            </div>
    
    
    
    

 
        
	  
      
      <div class="tabbable">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#b1" data-toggle="tab">供应</a></li>
                    <li><a href="#b2" data-toggle="tab">求购</a></li>
                    <li><a href="#b3" data-toggle="tab">二手</a></li>
                    <li><a href="#b4" data-toggle="tab">促销</a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="b1">
          
                          
                          <ul>
                        {get sql="SELECT id,title,updatetime,url FROM `table_yellowpage_buy` WHERE tid = 1 AND status = 99 ORDER BY id DESC" rows="10"}
                            <li><span>{date("m.d",$r['updatetime'])}</span><a href="{url($r[url])}">{str_cut($r['title'],30)}</a></li>
                        {/get}
                        </ul>
              
                    </div>
                    <div class="tab-pane" id="b2">
                    
                      <ol>
                    {get sql="SELECT id,title,updatetime,url FROM `table_yellowpage_buy` WHERE tid = 2 AND status = 99 ORDER BY id DESC" rows="10"}
                    <li><span>{date("m.d",$r['updatetime'])}</span><a href="{url($r[url])}">{str_cut($r['title'],30)}</a></li>
                    {/get}
                    </ol>
            
              
                    </div>
                    <div class="tab-pane" id="b3">
                    
                    <ol>
                    {get sql="SELECT id,title,updatetime,url FROM `table_yellowpage_buy` WHERE tid = 3 AND status = 99 ORDER BY id DESC" rows="10"}
                        <li><span>{date("m.d",$r['updatetime'])}</span><a href="{url($r[url])}">{str_cut($r['title'],30)}</a></li>
                    {/get}
                    </ol>
              
                    </div>
                    <div class="tab-pane" id="b4">
                    
                    <ol>
                    {get sql="SELECT id,title,updatetime,url FROM `table_yellowpage_buy` WHERE tid = 4 AND status = 99 ORDER BY id DESC" rows="10"}
                        <li><span>{date("m.d",$r['updatetime'])}</span><a href="{url($r[url])}">{str_cut($r['title'],30)}</a></li>
                    {/get}
                    </ol>
              
                    </div>
                </div>
            </div>
      
	  
 
      
      <div class="mod">
      	<div class="head"><a href="{url("?module=$module&file=job&action=list")}">企业招聘&nbsp;&nbsp;<a class="button" href="{url("?module=$module&file=job&action=add")}"><i class="icon-edit"></i>发布职位</a></div>
        <div class="body">
        	<ol>
            {get sql="SELECT j.id,j.title,j.userid,j.url,c.companyname FROM `table_yellowpage_job` `j`,`table_member_company` `c` WHERE c.userid = j.userid AND j.status = 99 ORDER BY id DESC" rows="10"}
                <li><a href="{url($r[url])}" title="{$r[title]}">{str_cut($r[title],20)}</a> [ {str_cut($r[companyname],20)} ]</li>
            {/get}
            </ol>
        </div>
      </div>
      
      
      
      <div class="mod">
      	<div class="head"><a href="{url("?module=$module&file=job&action=applylist")}">个人求职</a>&nbsp;&nbsp;<a class="button" href="{url("?module=$module&file=myjob&action=add")}"><i class="icon-edit"></i>发简历</a></div>
        <div class="body">
        	<ol>
            {get sql="SELECT a.applyid,a.truename,t.name,t.typeid FROM `table_yellowpage_apply` `a`,`table_type` `t` WHERE t.module = 'yellowpage' AND t.typeid = a.station AND a.status = 3 ORDER BY applyid DESC" rows="10"}
                <li><a href="{url("?module=$module&action=apply&applyid=$r[applyid]")}" title="{$r[truename]}">{$r[truename]}</a> [ {$r[name]} ]</li>
            {/get}
            </ol>
        </div>
      </div>
      
      
     
   
	</div>
</div>

{template 'footer.html'}
